#pragma once

#include "ChatBaseDoc.h"

// CChatServerDoc document

class NatPunchthroughServer;


class CChatServerDoc : public CChatBaseDoc
{
	NatPunchthroughServer*	m_pNatPunchThroughServer;

	DECLARE_DYNCREATE(CChatServerDoc)

	
public:
	CChatServerDoc();
	virtual ~CChatServerDoc();
	virtual bool		StartUpRaknet(unsigned short maxConnections, int _threadSleepTimer, SocketDescriptor *socketDescriptors, unsigned socketDescriptorCount) override;
	
#ifndef _WIN32_WCE
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
#endif
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	virtual BOOL OnNewDocument();
	
	DECLARE_MESSAGE_MAP()
};
